/**
  ******************************************************************************
  * @file     User/tk_user.h
  * @author   TAIXIN-IC Application Team
  * @version  V1.0.0
  * @date     05-20-2022
  * @brief    Main program body.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; COPYRIGHT 2022 TAIXIN-IC</center></h2>
  *
  *
  *
  ******************************************************************************
  */ 
  
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __TK_USER_H
#define __TK_USER_H

#ifdef __cplusplus
 extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/

/* Exported types ------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/
 
/** @defgroup XXX_LL_Register_Constants XXX LL Register Constants
  * @ingroup  XXX_LL_Driver
  * @brief    XXX LL register constant table definition
  *
  *
  
@verbatim   
  ===============================================================================
                                Register Constants
  ===============================================================================  
  
    Register Constants mainly encapsulates each bit in each group in the XXX 
    register. In the process of configuration, the macro definition can be directly 
    called to configure the XXX register, mainly for convenience. Understand the 
    configuration of the XXX.
    
@endverbatim
  *
  * @{
  */
#if TK_DEBUG_EN 
void debug_gpio_config(void);
#endif

#define SMG_A  P06
#define SMG_B  P13
#define SMG_C  P11
#define SMG_D  P14
#define SMG_E  P20
#define SMG_F  P01
#define SMG_G1 P00
#define SMG_G2 P02
#define SMG_H  P04
#define SMG_J  P03
#define SMG_K  P07
#define SMG_L  P17
#define SMG_M  P22
#define SMG_N  P23
#define SMG_DP P21

#define LED1 P03
#define LED2 P22
#define LED3 P17
#define LED4 P04
#define LED5 P02
#define LED6 P23
#define LED7 P01


#define SMG_COM1 P24
#define SMG_COM2 P31
#define SMG_COM3 P05
#define SMG_COM4 P12
#define SMG_COM5 P30

void user_init(void);
void user_handle(void);
void SMG_SHOW(unsigned int m);
void led_display(void);
void rx_display(void);
void led_single(void);
void uart_tx(void);
void flashing(void);	
/**
  * @}
  */

/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/


#ifdef __cplusplus
}
#endif

#endif // __TK_USER__

/**
  * @}
  */

/**
  * @}
  */

/*************************** (C) COPYRIGHT 2021 TAIXIN-IC ***** END OF FILE *****/
